import request from '@/utils/request'

export function getRouterList(data) {
  return {
    data: [
      {
        path: '/',
        component: 'Layout',
        redirect: 'index',
        children: [
          {
            path: 'index',
            name: 'Index',
            component: '@/views/index/index',
            meta: {
              title: '首页',
              icon: 'home',
              affix: true,
            },
          },
        ],
      },
      {
        path: '/userManagement',
        component: 'Layout',
        redirect: 'noRedirect',
        name: 'user',
        meta: { title: '角色管理', icon: 'users-cog', permissions: ['admin'] },
        children: [
          {
            path: 'index',
            name: 'index',
            component: '@/views/userManagement/index',
            meta: { title: '校友管理' },
          },
          {
            path: '/editUser',
            name: 'editUser',
            component: '@/views/userManagement/editUser',
            // meta: { title: '用户信息', permissions: ['root'] },
          },
          {
            path: 'adminManagement',
            name: 'adminManagement',
            component: '@/views/userManagement/adminManagement',
            meta: { title: '管理员管理' },
          },
          {
            path: 'userClassification',
            name: 'userClassification',
            component: '@/views/userManagement/userClassification',
            meta: { title: '行业领域' },
          },
          {
            path: 'userEducationalBackground',
            name: 'userEducationalBackground',
            component: '@/views/userManagement/userEducationalBackground',
            meta: { title: '学历管理' },
          },
        ],
      },
      {
        path: '/newsManagement',
        component: 'Layout',
        redirect: 'noRedirect',
        name: 'newsManagement',
        meta: { title: '资讯管理', icon: 'newspaper', permissions: ['admin'] },
        children: [
          {
            path: 'index',
            name: 'index',
            component: '@/views/newsManagement/index',
            meta: { title: '资讯管理' },
          },
          {
            path: '/editNews',
            name: 'editNews',
            component: '@/views/newsManagement/editNews',
            // meta: { title: 'editUser' },
          },
          {
            path: 'newsClassification',
            name: 'newsClassification',
            component: '@/views/newsManagement/newsClassification',
            meta: { title: '资讯类别' },
          },
        ],
      },
      {
        path: '/helpManagement',
        component: 'Layout',
        redirect: 'noRedirect',
        name: 'helpManagement',
        meta: {
          title: '互助管理',
          icon: 'hands-helping',
          permissions: ['admin'],
        },
        children: [
          {
            path: 'index',
            name: 'index',
            component: '@/views/helpManagement/index',
            meta: { title: '互助管理' },
          },
          {
            path: '/editHelp',
            name: 'editHelp',
            component: '@/views/helpManagement/editHelp',
            // meta: { title: 'editUser' },
          },
          {
            path: 'helpClassification',
            name: 'helpClassification',
            component: '@/views/helpManagement/helpClassification',
            meta: { title: '互助类别' },
          },
        ],
      },
      {
        path: '/albumManagement',
        component: 'Layout',
        redirect: 'noRedirect',
        name: 'albumManagement',
        meta: {
          title: '相册管理',
          icon: 'photo-video',
          permissions: ['admin'],
        },
        children: [
          {
            path: 'index',
            name: 'index',
            component: '@/views/albumManagement/index',
            meta: { title: '相册管理' },
          },
          {
            path: '/editAlbum',
            name: 'editAlbum',
            component: '@/views/albumManagement/editAlbum',
            // meta: { title: 'editUser' },
          },
          {
            path: 'albumClassification',
            name: 'albumClassification',
            component: '@/views/albumManagement/albumClassification',
            meta: { title: '相册类别' },
          },
        ],
      },
      {
        path: '/activityManagement',
        component: 'Layout',
        redirect: 'noRedirect',
        name: 'activityManagement',
        meta: { title: '活动管理', icon: 'flag', permissions: ['admin'] },
        children: [
          {
            path: 'index',
            name: 'index',
            component: '@/views/activityManagement/index',
            meta: { title: '活动管理' },
          },
          {
            path: '/editActivity',
            name: 'editActivity',
            component: '@/views/activityManagement/editActivity',
            // meta: { title: 'editUser' },
          },
          {
            path: 'activityClassification',
            name: 'activityClassification',
            component: '@/views/activityManagement/activityClassification',
            meta: { title: '活动类别' },
          },
        ],
      },
      {
        path: '/commentManagement',
        component: 'Layout',
        redirect: 'noRedirect',
        name: 'commentManagement',
        meta: { title: '评论管理', icon: 'newspaper', permissions: ['admin'] },
        children: [
          {
            path: 'index',
            name: 'index',
            component: '@/views/commentManagement/index',
            meta: { title: '评论管理' },
          },
          {
            path: 'replyManagement',
            name: 'replyManagement',
            component: '@/views/commentManagement/replyManagement',
            meta: { title: '回复管理' },
          },
        ],
      },
      // {
      //   path: '/personnelManagement',
      //   component: 'Layout',
      //   redirect: 'noRedirect',
      //   name: 'PersonnelManagement',
      //   meta: { title: '人员', icon: 'users-cog', permissions: ['admin'] },
      //   children: [
      //     {
      //       path: 'userManagement',
      //       name: 'UserManagement',
      //       component: '@/views/personnelManagement/userManagement/index',
      //       meta: { title: '用户管理' },
      //     },
      //     {
      //       path: 'roleManagement',
      //       name: 'RoleManagement',
      //       component: '@/views/personnelManagement/roleManagement/index',
      //       meta: { title: '角色管理' },
      //     },
      //     {
      //       path: 'menuManagement',
      //       name: 'MenuManagement',
      //       component: '@/views/personnelManagement/menuManagement/index',
      //       meta: { title: '菜单管理', badge: 'New' },
      //     },
      //   ],
      // },
      // {
      //   path: '/vab',
      //   component: 'Layout',
      //   redirect: 'noRedirect',
      //   name: 'Vab',
      //   alwaysShow: true,
      //   meta: { title: '组件', icon: 'cloud' },
      //   children: [
      //     {
      //       path: 'permissions',
      //       name: 'Permission',
      //       component: '@/views/vab/permissions/index',
      //       meta: {
      //         title: '权限控制',
      //         permissions: ['admin', 'editor'],
      //         badge: 'New',
      //       },
      //     },
      //     {
      //       path: 'icon',
      //       component: 'EmptyLayout',
      //       redirect: 'noRedirect',
      //       name: 'Icon',
      //       meta: {
      //         title: '图标',
      //         permissions: ['admin'],
      //       },
      //       children: [
      //         {
      //           path: 'awesomeIcon',
      //           name: 'AwesomeIcon',
      //           component: '@/views/vab/icon/index',
      //           meta: { title: '常规图标' },
      //         },
      //         {
      //           path: 'colorfulIcon',
      //           name: 'ColorfulIcon',
      //           component: '@/views/vab/icon/colorfulIcon',
      //           meta: { title: '多彩图标' },
      //         },
      //       ],
      //     },
      //     {
      //       path: 'table',
      //       component: '@/views/vab/table/index',
      //       name: 'Table',
      //       meta: {
      //         title: '表格',
      //         permissions: ['admin'],
      //       },
      //     },
      //     {
      //       path: 'map',
      //       name: 'Map',
      //       component: '@/views/vab/map/index',
      //       meta: { title: '地图', permissions: ['admin'], badge: 'Pro' },
      //     },
      //     {
      //       path: 'webSocket',
      //       name: 'WebSocket',
      //       component: '@/views/vab/webSocket/index',
      //       meta: { title: 'webSocket', permissions: ['admin'] },
      //     },
      //     {
      //       path: 'form',
      //       name: 'Form',
      //       component: '@/views/vab/form/index',
      //       meta: { title: '表单', permissions: ['admin'] },
      //     },
      //     {
      //       path: 'element',
      //       name: 'Element',
      //       component: '@/views/vab/element/index',
      //       meta: { title: '常用组件', permissions: ['admin'] },
      //     },
      //     {
      //       path: 'tree',
      //       name: 'Tree',
      //       component: '@/views/vab/tree/index',
      //       meta: { title: '树', permissions: ['admin'] },
      //     },
      //     {
      //       path: 'verify',
      //       name: 'Verify',
      //       component: '@/views/vab/verify/index',
      //       meta: { title: '验证码', permissions: ['admin'] },
      //     },
      //     {
      //       path: 'menu1',
      //       component: '@/views/vab/nested/menu1/index',
      //       name: 'Menu1',
      //       alwaysShow: true,
      //       meta: {
      //         title: '嵌套路由 1',
      //         permissions: ['admin'],
      //       },
      //       children: [
      //         {
      //           path: 'menu1-1',
      //           name: 'Menu1-1',
      //           alwaysShow: true,
      //           meta: { title: '嵌套路由 1-1' },
      //           component: '@/views/vab/nested/menu1/menu1-1/index',

      //           children: [
      //             {
      //               path: 'menu1-1-1',
      //               name: 'Menu1-1-1',
      //               meta: { title: '嵌套路由 1-1-1' },
      //               component:
      //                 '@/views/vab/nested/menu1/menu1-1/menu1-1-1/index',
      //             },
      //           ],
      //         },
      //       ],
      //     },
      //     {
      //       path: 'loading',
      //       name: 'Loading',
      //       component: '@/views/vab/loading/index',
      //       meta: { title: 'loading', permissions: ['admin'] },
      //     },
      //     {
      //       path: 'backToTop',
      //       name: 'BackToTop',
      //       component: '@/views/vab/backToTop/index',
      //       meta: { title: '返回顶部', permissions: ['admin'] },
      //     },
      //     {
      //       path: 'lodash',
      //       name: 'Lodash',
      //       component: '@/views/vab/lodash/index',
      //       meta: { title: 'lodash', permissions: ['admin'] },
      //     },
      //     {
      //       path: 'smallComponents',
      //       name: 'SmallComponents',
      //       component: '@/views/vab/smallComponents/index',
      //       meta: { title: '小组件', permissions: ['admin'] },
      //     },

      //     {
      //       path: 'upload',
      //       name: 'Upload',
      //       component: '@/views/vab/upload/index',
      //       meta: { title: '上传', permissions: ['admin'] },
      //     },
      //     {
      //       path: 'log',
      //       name: 'Log',
      //       component: '@/views/vab/errorLog/index',
      //       meta: { title: '错误日志模拟', permissions: ['admin'] },
      //     },
      //     {
      //       path: 'more',
      //       name: 'More',
      //       component: '@/views/vab/more/index',
      //       meta: { title: '关于', permissions: ['admin'] },
      //     },
      //   ],
      // },
      // {
      //   path: '/mall',
      //   component: 'Layout',
      //   redirect: 'noRedirect',
      //   name: 'Mall',
      //   meta: {
      //     title: '商城',
      //     icon: 'shopping-cart',
      //     permissions: ['admin'],
      //   },

      //   children: [
      //     {
      //       path: 'pay',
      //       name: 'Pay',
      //       component: '@/views/mall/pay/index',
      //       meta: {
      //         title: '支付',
      //         noKeepAlive: true,
      //       },
      //       children: null,
      //     },
      //     {
      //       path: 'goodsList',
      //       name: 'GoodsList',
      //       component: '@/views/mall/goodsList/index',
      //       meta: {
      //         title: '商品列表',
      //       },
      //     },
      //   ],
      // },
      // {
      //   path: '/error',
      //   component: 'EmptyLayout',
      //   redirect: 'noRedirect',
      //   name: 'Error',
      //   meta: { title: '错误页', icon: 'bug' },
      //   children: [
      //     {
      //       path: '401',
      //       name: 'Error401',
      //       component: '@/views/401',
      //       meta: { title: '401' },
      //     },
      //     {
      //       path: '404',
      //       name: 'Error404',
      //       component: '@/views/404',
      //       meta: { title: '404' },
      //     },
      //   ],
      // },
    ],
  }
  // return request({
  //   url: '/menu/navigate',
  //   method: 'post',
  //   data: this.data,
  // })
}
